package utils

/**
 * @author feige
 * @date 2023-10-16
 * @version 1.0
 * @desc  简化简单if/else + return
 */
func If(condition bool, trueVal, falseVal interface{}) interface{} {
	if condition {
		return trueVal
	}
	return falseVal
}
